package Book01.Operation;

import Book01.Book;
import Book01.BookList;

public class ShowOperation  implements IOperation{

    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书");
        int currentSize = bookList.Size;
        for(int i = 0; i < currentSize; i++){
            Book book = bookList.findBook(i);
            System.out.println(book);
        }
    }
}
